package com.atguigu.gmall.order;

import com.atguigu.gmall.common.config.rabbitMq.annotation.EnableMqService;
import com.atguigu.gmall.common.intercetors.anntation.EnableUserHeaderFeignIntercetor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@SpringCloudApplication
@MapperScan(basePackages = "com.atguigu.gmall.order.mapper")
@EnableUserHeaderFeignIntercetor
@EnableFeignClients(basePackages = {"com.atguigu.gmall.feign.cart",
        "com.atguigu.gmall.feign.product",
        "com.atguigu.gmall.feign.user"
        ,"com.atguigu.gmall.feign.ware"})
@EnableTransactionManagement
@EnableMqService
public class OrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class,args);
    }
}
